import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2022-04-21
 * Time: 23:18
 */
public class TestDemo {
    public static void main7(String[] args) {
        int a =1;
        int b =3;
        a++;
        b++;
        System.out.println(a);
        System.out.println(b);
    }
    public static void main6(String[] args) {
        short sh=1;
        //sh=(short)(sh+1);
        sh+=1;//+=这样的符号避免使用强转
        System.out.println();
    }
    public static void main5(String[] args) {
        int a = 1;
        a+=1;
        System.out.println(a);
    }
    public static void main4(String[] args) {
        System.out.println(11.50%2.0);//可以对小数进行取余
    }
    public static void main3(String[] args) {
        System.out.println(10%3);
        System.out.println(10%-3);
        System.out.println(-10%3);
        System.out.println(-10%-3);

    }
    public static void main2(String[] args) {
        System.out.println(5/2);//除法
        System.out.println((float)5/2);
        System.out.println(5/(float)2);
        System.out.println((float)(5/2));

    }
    public static void main1(String[] args) {
        boolean flg = false;//boolean只能表示true和false
        System.out.println("\\\"hello\"\\");//这里要注意一点，\"才能表示一个",三个\\\表示一个\
    }
}
